<?php
	/*
	 * AJAX call to update database and set a publicity text to "shown" status.
	 * USED BY THE FLASH INTERFACE
	 *
	 * Variables:
	 *   id (int) : Record ID of the SMS message, 0 if new SMS
	 *
	 * Returns: "ok"
	 *
	 */

	header('Content-type: text/plain');
	mysql_query("UPDATE publicity SET pubShownAt=NOW() WHERE pubID=".round($_GET["id"])." LIMIT 1");
	echo "ok";
?>